using System;

namespace Bitcoin
{
    /// <summary>
    ///     Called on a Peer thread when a block is received.
    /// </summary>
    /// <remarks>
    ///     The block may have transactions or may be a header only once getheaders is implemented.
    /// </remarks>
    public class BlocksDownloadedEventArgs : EventArgs
    {
        public BlocksDownloadedEventArgs(Block block, int blocksLeft)
        {
            Block = block;
            BlocksLeft = blocksLeft;
        }

        /// <summary>
        ///     The downloaded block.
        /// </summary>
        public Block Block { get; private set; }

        /// <summary>
        ///     The number of blocks left to download.
        /// </summary>
        public int BlocksLeft { get; private set; }
    }
}